package any.incubator.xstream;

import com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;


public class XStreamAny implements ExtendedHierarchicalStreamWriter {

	@SuppressWarnings("rawtypes")
	public void startNode(String name, Class clazz) {
		System.out.println("startNode() name: " + name + " / class: " + clazz);
	}

	public void addAttribute(String name, String value) {
		System.out.println("addAttribute() name: " + name + " / value: " + value);
	}

	public void close() {
		System.out.println("close()");
	}

	public void endNode() {
		System.out.println("endNode()");
	}

	public void flush() {
		System.out.println("flush()");
	}

	public void setValue(String text) {
		System.out.println("setValue() text: " + text);
	}

	public void startNode(String name) {
		System.out.println("setValue() name: " + name);
	}

	public HierarchicalStreamWriter underlyingWriter() {
		return this;
	}
	
	public static void main(String[] args) {
		XStreamAny xStreamAny = new XStreamAny();
		
    }

}
